package com.job.yangshida.homework0712;

/**
 * @author 杨士达
 * @version 1.0
 * @since 2022-07-13 13:53:01
 */
public class Factory {
    public static Attack attack(int n) {
        if (n==1){
            return new Attack1();
        }else if (n==2){
            return new Attack2();
        }else if (n==3){
            return new Attack3();
        }else{
            return null;
        }

    }
}
